package system_code.IO;

import java.io.File;
import java.io.IOException;

public class Test4 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("hello.txt");
        File f2 = new File("world.txt");
        f1.createNewFile();
        f2.createNewFile();
        f2.renameTo(f1);
    }
}
